package com.system.enterprisemanagementsystem.controller;


import com.system.enterprisemanagementsystem.pojo.EmpQueryParam;
import com.system.enterprisemanagementsystem.pojo.PageResult;
import com.system.enterprisemanagementsystem.pojo.Result;
import com.system.enterprisemanagementsystem.service.OperateLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/log")
@RestController
public class OperateLogController {


    @Autowired
    OperateLogService operateLogService;

    @GetMapping("/page")
    public Result page(Integer page,Integer pageSize) {
        log.info("查询请求参数第{}，每页{}",page,pageSize );
        PageResult pageResult = operateLogService.page(page,pageSize);
        return Result.success(pageResult);
    }
}
